<!--# layout("/common/layout.html",{"jsBase":"/js/cms/xxdItem/"}){ -->

<style type="text/css">
    .col-width-style {
        width: 620px;
    }

    .input-style {
        width: 510px;
    }

    .layui-input {
        border: 0px;
    }

    .layui-form-label {
        background: transparent;
        border: 0px;
    }

    .layui-elem-field {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .layui-form-label {
        background: transparent !important;
        border: 0px !important;
    }

    .layui-input {
        color: #7b7b7b;
    }
</style>

<form class="layui-form layui-form-pane" id="updateForm">

    <fieldset class="layui-elem-field">
        <legend>商品信息</legend>
        <div class="layui-field-box">
            <div class="layui-row">

                <div class="layui-col-xs3">
                    <div class="grid-demo grid-demo-bg1">

                        <div class="layui-inline">
                            <label class="layui-form-label">商品ID</label>
                            <div class="layui-input-inline">
                                <input type="text" id="id" name="id"  value="${item.id}"   class="layui-input" readonly="true" disabled="true">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">商品标题</label>
                            <div class="layui-input-inline">
                                <input type="text" id="title" name="title"  value="${item.title}"   class="layui-input" maxlength="1000">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">商品卖点</label>
                            <div class="layui-input-inline">
                                <input type="text" id="sellPoint" name="sellPoint"  value="${item.sellPoint}"  class="layui-input" maxlength="1000" >
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-field-box">
            <div class="layui-row">
                <div class="layui-col-xs3">
                    <div class="grid-demo grid-demo-bg1">
                         <div class="layui-inline">
                                  <label class="layui-form-label">商品价格</label>
                                     <div class="layui-input-inline">
                                         <input type="text" id="price" name="price"  value="${item.price}"   class="layui-input" >
                                     </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">库存数量</label>
                                        <div class="layui-input-inline">
                                            <input type="text" id="num" name="num"  value="${item.num}"   class="layui-input" maxlength="11" readonly="true">
                                        </div>
                                    </div>
                        </div>
                   </div>
               </div>
            </div>
        </div>
    </fieldset>

    <fieldset class="layui-elem-field">
        <legend>图片信息</legend>
        <div class="layui-field-box">
            <div class="layui-container">
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <img src="${isNotEmpty(item.image) ? item.image}" alt="" width="200px" height="200px" onerror="this.src='${ctxPath}/img/no_pic.jpg'"
                             class="layui-upload-img" onclick="Lib.showImg(this,this.src);">
                        <br><label>商品正面照</label><br>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>

    <layui:returnButtons id="returnButtons" text="返回"/>

</form>
<!--#} -->
<script>
    layui.use('layer', function () {
        var form = layui.layer;

    });

    $(function(){
        $("#returnButtons-return").click(function(){
            Lib.closeFrame();
        });
    })

</script>
